package routers

import (
	"2301_qidian/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/add", &controllers.NovelController{}, "post:Add")
	beego.Router("/list", &controllers.NovelController{}, "get:List")
	beego.Router("/del", &controllers.NovelController{}, "post:Del")
	beego.Router("/update", &controllers.NovelController{}, "post:Update")
	beego.Router("/detail", &controllers.NovelController{}, "get:Detail")
	beego.Router("/update_status", &controllers.NovelController{}, "post:UpdateStatus")

}
